package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="Dispatch"
 *         schema="scsc"
 *     
*/
public class Dispatch implements Serializable {

    /** identifier field */
    private Long id;

    /** nullable persistent field */
    private String secretGrade;

    /** nullable persistent field */
    private String styleId;

    /** nullable persistent field */
    private String fileId;

    /** nullable persistent field */
    private String draftCom;

    /** nullable persistent field */
    private String drafter;

    /** nullable persistent field */
    private String draftDate;

    /** nullable persistent field */
    private String title;

    /** nullable persistent field */
    private String exfile;

    /** nullable persistent field */
    private String mostDeliver;

    /** nullable persistent field */
    private String copyDeliver;

    /** nullable persistent field */
    private String keyWord;

    /** nullable persistent field */
    private String checker;

    /** nullable persistent field */
    private String typer;

    /** nullable persistent field */
    private String corrector;

    /** nullable persistent field */
    private String monitor;

    /** nullable persistent field */
    private Integer counts;

    /** persistent field */
    private long processInstanceId;

    /** nullable persistent field */
    private String state;

    /** nullable persistent field */
    private String dispatchType;

    /** full constructor */
    public Dispatch(String secretGrade, String styleId, String fileId, String draftCom, String drafter, String draftDate, String title, String exfile, String mostDeliver, String copyDeliver, String keyWord, String checker, String typer, String corrector, String monitor, Integer counts, long processInstanceId, String state, String dispatchType) {
        this.secretGrade = secretGrade;
        this.styleId = styleId;
        this.fileId = fileId;
        this.draftCom = draftCom;
        this.drafter = drafter;
        this.draftDate = draftDate;
        this.title = title;
        this.exfile = exfile;
        this.mostDeliver = mostDeliver;
        this.copyDeliver = copyDeliver;
        this.keyWord = keyWord;
        this.checker = checker;
        this.typer = typer;
        this.corrector = corrector;
        this.monitor = monitor;
        this.counts = counts;
        this.processInstanceId = processInstanceId;
        this.state = state;
        this.dispatchType = dispatchType;
    }

    /** default constructor */
    public Dispatch() {
    }

    /** minimal constructor */
    public Dispatch(long processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Long"
     *             column="Id"
     *             unsaved-value="0"
     *         
     */
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /** 
     *            @hibernate.property
     *             column="SecretGrade"
     *             length="6"
     *         
     */
    public String getSecretGrade() {
        return this.secretGrade;
    }

    public void setSecretGrade(String secretGrade) {
        this.secretGrade = secretGrade;
    }

    /** 
     *            @hibernate.property
     *             column="StyleId"
     *             length="4"
     *         
     */
    public String getStyleId() {
        return this.styleId;
    }

    public void setStyleId(String styleId) {
        this.styleId = styleId;
    }

    /** 
     *            @hibernate.property
     *             column="FileId"
     *             length="100"
     *         
     */
    public String getFileId() {
        return this.fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    /** 
     *            @hibernate.property
     *             column="DraftCom"
     *             length="300"
     *         
     */
    public String getDraftCom() {
        return this.draftCom;
    }

    public void setDraftCom(String draftCom) {
        this.draftCom = draftCom;
    }

    /** 
     *            @hibernate.property
     *             column="Drafter"
     *             length="100"
     *         
     */
    public String getDrafter() {
        return this.drafter;
    }

    public void setDrafter(String drafter) {
        this.drafter = drafter;
    }

    /** 
     *            @hibernate.property
     *             column="DraftDate"
     *             length="23"
     *         
     */
    public String getDraftDate() {
        return this.draftDate;
    }

    public void setDraftDate(String draftDate) {
        this.draftDate = draftDate;
    }

    /** 
     *            @hibernate.property
     *             column="Title"
     *             length="300"
     *         
     */
    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    /** 
     *            @hibernate.property
     *             column="ExFile"
     *             length="300"
     *         
     */
    public String getExfile() {
        return this.exfile;
    }

    public void setExfile(String exfile) {
        this.exfile = exfile;
    }

    /** 
     *            @hibernate.property
     *             column="MostDeliver"
     *             length="300"
     *         
     */
    public String getMostDeliver() {
        return this.mostDeliver;
    }

    public void setMostDeliver(String mostDeliver) {
        this.mostDeliver = mostDeliver;
    }

    /** 
     *            @hibernate.property
     *             column="CopyDeliver"
     *             length="300"
     *         
     */
    public String getCopyDeliver() {
        return this.copyDeliver;
    }

    public void setCopyDeliver(String copyDeliver) {
        this.copyDeliver = copyDeliver;
    }

    /** 
     *            @hibernate.property
     *             column="KeyWord"
     *             length="300"
     *         
     */
    public String getKeyWord() {
        return this.keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    /** 
     *            @hibernate.property
     *             column="Checker"
     *             length="50"
     *         
     */
    public String getChecker() {
        return this.checker;
    }

    public void setChecker(String checker) {
        this.checker = checker;
    }

    /** 
     *            @hibernate.property
     *             column="Typer"
     *             length="50"
     *         
     */
    public String getTyper() {
        return this.typer;
    }

    public void setTyper(String typer) {
        this.typer = typer;
    }

    /** 
     *            @hibernate.property
     *             column="Corrector"
     *             length="50"
     *         
     */
    public String getCorrector() {
        return this.corrector;
    }

    public void setCorrector(String corrector) {
        this.corrector = corrector;
    }

    /** 
     *            @hibernate.property
     *             column="Monitor"
     *             length="50"
     *         
     */
    public String getMonitor() {
        return this.monitor;
    }

    public void setMonitor(String monitor) {
        this.monitor = monitor;
    }

    /** 
     *            @hibernate.property
     *             column="Counts"
     *             length="10"
     *         
     */
    public Integer getCounts() {
        return this.counts;
    }

    public void setCounts(Integer counts) {
        this.counts = counts;
    }

    /** 
     *            @hibernate.property
     *             column="ProcessInstanceID"
     *             length="18"
     *             not-null="true"
     *         
     */
    public long getProcessInstanceId() {
        return this.processInstanceId;
    }

    public void setProcessInstanceId(long processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    /** 
     *            @hibernate.property
     *             column="State"
     *             length="1"
     *         
     */
    public String getState() {
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }

    /** 
     *            @hibernate.property
     *             column="DispatchType"
     *             length="1"
     *         
     */
    public String getDispatchType() {
        return this.dispatchType;
    }

    public void setDispatchType(String dispatchType) {
        this.dispatchType = dispatchType;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
